package com.yuanqunsoft.alimigration.dao;

import java.util.List;

import com.yuanqunsoft.alimigration.dao.support.Page;
import com.yuanqunsoft.alimigration.model.Alert;

public interface IAlertDao {
    public void save(Alert instance);

    public void delete(Alert instance);
    
    public void deleteByReportId(Integer id);

    public Alert findById(Integer id);

    public List findByReportId(Integer reportId);

    public List findByExample(Alert instance);

    public boolean hqlExcute(String hql, Object... values);

    public List<Alert> hqlQuery(String hql, Object... values);

    public <Alert> Page<Alert> pagedQuery(String hql, int pageNo, int pageSize, Object... values);

    public Page<Alert> pagedQueryByStartNo(String hql, int startNo, int pageSize, Object... values);

    public List<Alert> findByNamedParams(String hql, String[] paramNames, Object... values);

}
